<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" version="4.0" encoding="UTF-8"/>
<xsl:template match="/page">
<html>
<head><meta http-equiv="Content-type" content="text/html; charset=UTF-8" />
<title><xsl:value-of select='title' /></title>
<link type="text/css" rel="stylesheet" href="index.css" />
</head>
<body>
<table id='main' border="1">
<tbody><tr><td colspan="3">
<table width="100%">
<tbody><tr><td colspan="2" align="center">
<h2><xsl:value-of select='header' /></h2>
</td></tr><tr>
<td id='author'><a href="?name=protected">members entrance</a>(under construction)</td></tr>
</tbody>
</table></td></tr><tr><td align="center" valign="top" width="15%">
<!-- menu content -->
<table>
<xsl:for-each select="document('modules/static/menu.xml')/menu/entry">
<tr><td>
	<a>
	<xsl:attribute name="href"><xsl:value-of select="href"/></xsl:attribute>
	<xsl:apply-templates select="text"/>
	</a>
</td></tr>
</xsl:for-each>
</table>
<!-- end of menu content -->
</td><td valign="top" width="85%">
<!-- main content -->
<xsl:apply-templates select="content"/>
</td></tr>
</tbody></table>
</body>
</html>
</xsl:template>

<xsl:template match="content">
<xsl:apply-templates/>
</xsl:template>

<xsl:template match="text()">
<xsl:value-of select="."/>
</xsl:template>

<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>

</xsl:stylesheet>
